/**
 * 
 */
package com.yidu.erp.service.fdpurchase;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.dao.BeyondFdproformMapper;
import com.yidu.erp.dao.BeyondProlistmxsmallMapper;
import com.yidu.erp.dao.BeyondWareMapper;
import com.yidu.erp.model.BeyondFdproform;
import com.yidu.erp.model.BeyondWare;

/**
 * 分店采购的service接口
 * @author Administrator
 *
 */
@Service
public class FdproFormImp implements FdproFormService{
	@Resource
	private  BeyondFdproformMapper fdproformDao;
	
	@Resource
	private BeyondProlistmxsmallMapper fdProListMx;
	
	@Resource 
	private BeyondWareMapper  ware;
	
	
	/* (non-Javadoc)
	 * @see com.yidu.erp.llp.service.FdproFormService#deleteByPrimaryKey(java.lang.String)
	 */
	@Override
	public int deleteByPrimaryKey(String fdproId) {
		return fdproformDao.deleteByPrimaryKey(fdproId);
	}
	

	/* (non-Javadoc)
	 * @see com.yidu.erp.llp.service.FdproFormService#insertSelective(com.yidu.erp.model.beyondFdproform)
	 */
	@Override
	public int insertSelective(BeyondFdproform record) {
		return fdproformDao.insertSelective(record);

	}
	

	/* (non-Javadoc)
	 * @see com.yidu.erp.llp.service.FdproFormService#getWareIdByNum(java.lang.String)
	 */
	@Override
	public BeyondWare getWareIdByNum(String warenum) {
		return fdproformDao.getWareIdByNum(warenum);
	}

	/* (non-Javadoc)
	 * @see com.yidu.erp.llp.service.FdproFormService#AllFdcure()
	 */
	@Override
	public Map<String, Object> AllFdcure(Map<String, Object> param) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("data", fdproformDao.AllFdcure(param));
		map.put("count", fdproformDao.findcont(param));
		map.put("code", 0);
		map.put("msg", 0);
		return map;
	}
	
	
	@Override
	public List<BeyondWare> selectAll(BeyondWare record) {
		List<BeyondWare>  list=ware.selectAll(record);
		return list;
	}


	@Override
	public int updateBy(BeyondFdproform record) {
		
		return fdproformDao.updateBy(record);
	}




}
